/*
 * Package: org.grassfield.common.entity
 * FileName: AuditLog.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package bean;

import java.util.Date;
import org.hibernate.validator.NotEmpty;
import org.hibernate.validator.NotNull;

/**
 * The Class AuditLog.
 */
public class AuditLog {
	
	/** The Constant LOGIN. */
	public static final String LOGIN = "LOGIN";
	
	/** The Constant TIMERJOB. */
	public static final String TIMERJOB = "TIMERJOB";
	private Long id;
	@NotNull
	private User user;
	@NotNull
	private String logType;
	@NotNull
	private Date logTime;
	@NotNull
	@NotEmpty
	private String message;
	private String status;
	
	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	
	/**
	 * Sets the id.
	 * 
	 * @param id the new id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * Gets the user.
	 * 
	 * @return the user
	 */
	public User getUser() {
		return user;
	}
	
	/**
	 * Sets the user.
	 * 
	 * @param user the new user
	 */
	public void setUser(User user) {
		this.user = user;
	}
	
	/**
	 * Gets the log type.
	 * 
	 * @return the log type
	 */
	public String getLogType() {
		return logType;
	}
	
	/**
	 * Sets the log type.
	 * 
	 * @param logType the new log type
	 */
	public void setLogType(String logType) {
		this.logType = logType;
	}
	
	/**
	 * Gets the log time.
	 * 
	 * @return the log time
	 */
	public Date getLogTime() {
		return logTime;
	}
	
	/**
	 * Sets the log time.
	 * 
	 * @param logTime the new log time
	 */
	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}
	
	/**
	 * Gets the message.
	 * 
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	
	/**
	 * Sets the message.
	 * 
	 * @param message the new message
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * Gets the status.
	 * 
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * Sets the status.
	 * 
	 * @param status the new status
	 */
	public void setStatus(String status) {
		this.status = status;
	}
}
